# _*_coding:utf-8 _*_
# @Time　　:2021/1/31 14:21
# @Author　 : wangyong
# @File　　  :base_api.py
# @Software  :PyCharm

import requests


class BaseApi:
    session = requests.Session()

    def send_request_session(self, method, url, **kwargs):
        self.data = self.session.request(method=method, url=url, **kwargs)

        return self.data

    def close(self):
        self.session.close()
